package demo4;

public class Cat extends Animal{
    static{
        System.out.println("执行了子类的静态代码块");
    }
    {
        System.out.println("执行了子类的实例代码块");
    }
    public Cat(int age, String name) {
        super(age,name);
        System.out.println("执行了子类的构造方法");
    }

    public void mao(){
        System.out.println(this.name + "在猫猫叫");
    }
}
